import axios from "../../index.js";
// 首页

// 今日值班日报日志
export const selectLogApi = (data) => {
  return axios.request({
    url: "/duty/dutyReport/selectLog",
    method: "get",
    data: data
  });
};
// 今日值班签到
export const selectSignInApi = (data) => {
  return axios.request({
    url: "/duty/dutyReport/selectSignIn",
    method: "get",
    data: data
  });
};
// 首页值班日志日报列表
export const selectDailyOrLogApi = (data) => {
  return axios.request({
    url: "/duty/dutyReport/selectDailyOrLog",
    method: "post",
    data: data
  });
};
// 首页值班日报统计饼图
export const selectDailySumApi = (data) => {
  return axios.request({
    url: "/duty/dutyReport/selectDailySum",
    method: "post",
    data: data
  });
};
// 首页值班日报统计柱状图
export const histogramDailyOrLogApi = (data) => {
  return axios.request({
    url: "/duty/dutyReport/histogramDailyOrLog",
    method: "post",
    data: data
  });
};
// 当前班次签到情况
export const getSignInStatusApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getAttendanceList",
    method: "post",
    data: data
  });
};
// 当前班次已签到未签到明细列表
export const getSignInListApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getSignInList",
    method: "post",
    data: data
  });
};
// 考勤统计缺勤
export const getAbsenteeismApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getAttendanceAbsenteeismList",
    method: "post",
    data: data
  });
};
// 考勤统计早退
export const getEarlyApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getAttendanceEarlyList",
    method: "post",
    data: data
  });
};
// 当前班次值班人数明细列表
export const getNumberOnDutyApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getNumberOnDuty",
    method: "post",
    data: data
  });
};
// 考勤统计迟到
export const getLateApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getAttendanceLateList",
    method: "post",
    data: data
  });
};
// 考勤统计请假
export const getLeaveApi = (data) => {
  return axios.request({
    url: "/duty/dutyAttendance/getAttendanceLeaveList",
    method: "post",
    data: data
  });
};
// 首页日志日报详情柱状图明细
export const getDailyDetailApi = (data) => {
  return axios.request({
    url: "/duty/dutyReport/getDailyDetail",
    method: "post",
    data: data
  });
};
// 今日情况
export const todaySituation = (data) => {
  return axios.request({
    url: "/duty/dutyReport/todaySituation",
    method: "post",
    data: data
  });
};
